﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Inspiration.Web.Models.Idea>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>No ideas? Try something random? </h2>
    
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <div>
            <%: Html.TextBox("RandomName", ViewData["RandomName"])%>
            </div>

            <p>
                
                <button name="generateButton" value="Generate">Generate</button> | <button name="saveButton" value="Save">Save</button>
            </p>
        </fieldset>
    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index", "CodeNames") %>
    </div>

</asp:Content>
